﻿using Obsidian.Edm;

/*============================
 * @author [#AUTHOR#]
 * @created [#CREATED#]
 * @desc 
* ============================ */

namespace [#PermitNS#]
{
	/// <summary>
	/// [#TbDescir#] 权限实体
	/// </summary>
	public class [#ClsName#]Permit : OModel
	{
		public [#ClsName#]Permit()
		{
			base.InitModel(new IModelField[] {
				create = new BoolField(this,null,"create"),
				get = new BoolField(this,null,"get"),
				list = new BoolField(this,null,"list"),
				update = new BoolField(this,null,"update"),
				delete = new BoolField(this,null,"delete")
			});
		}

		#region [字段属性]

		private BoolField get;
		/// <summary>
		/// 是否可以读取实体
		/// </summary>
		public BoolField Get { get { return get; } }

		private BoolField list;
		/// <summary>
		/// 是否可以读取实体列表
		/// </summary>
		public BoolField List { get { return list; } }

		private BoolField create;
		/// <summary>
		/// 是否可以创建
		/// </summary>
		public BoolField Create { get { return create; } }

		private BoolField update;
		/// <summary>
		/// 是否可以更新
		/// </summary>
		public BoolField Update { get { return update; } }

		private BoolField delete;
		/// <summary>
		/// 是否可以删除
		/// </summary>
		public BoolField Delete { get { return delete; } }

		#endregion [字段属性]
	}
}